<template>
	<view>
		<view>
			<web-view :src="link"></web-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:1,//1视频  2文件   3外连接  4预览文档
				id:0,
				video_id:0,
				link:'',
				windowHeight:0
			}
		},
		onLoad(option) {
			this.windowHeight = uni.getSystemInfoSync().windowHeight;
			
			if(option.link){
				let link = option.link;
				this.link = link;
				console.log(this.link)
			};
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
	
</style>
